[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 O_RW

 Function
  Set the open for read and write access flag in a FCREATE/FOPEN/FAPPEND
  statement.

 Value
  2 = 10b = 2o = 2h

 Remarks
  Files may be opened for read, write or combined read/write access.
  You should only use the access you need to allow other processes to
  open files at the same time in multitasking and networked environments.
  This constant will allow your PPE to both read from and write to a
  file without the need to close and reopen it between accesses.

 Example

  FOPEN 1,"FILE.DAT",O_RW,S_DN ' Open for read and write access
  FOR i = 1 TO 10
   FPUT 1,"X"
   FGET 1,s
   PRINTLN s
  NEXT
  FCLOSE 1

See Also: O_RD O_WR
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson